{include file='public/header.html'}
<style>
    h1 {font-size: 70px;}
    h1 span {font-size: 20px;}
</style>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar" id="sidebar">
            {include file='public/sidebar.html'}
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" id="main">

            <h3 class="page-header">提示</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    {if $status==1:}
                    <h1 class="text-success">:) <span>{$msg}</span></h1>
                    {else:}
                    <h1 class="text-danger">:( <span>{$msg}</span></h1>
                    {/if}
                    <hr />
                    <p>
                        <a href="__URL__" class="btn btn-success">返回</a>
                        <a href="{$url}" class="btn btn-primary">确认</a>
                    </p>
                </div>
                <div class="panel-footer">
                    页面 <a id="href" href="{$url}">跳转</a> 等待 <b id="wait">10</b> 秒
                </div>
            </div>

        </div>
    </div>
</div>
{include file='public/footer.html'}
<script type="text/javascript">
    (function () {
        const wait = document.getElementById('wait');
        const href = document.getElementById('href').href;
        window.setInterval(function() {
            const time = --wait.innerHTML;
            if (time <= 0) {
                location.href = href;
            }
        }, 1000);
    })();
</script>
</body>
</html>